<div class="headline">
  <h2>
      <?php echo $this->translate('Import Blogs');?>
  </h2>
  <div class="tabs">
    <?php
      // Render the menu
      echo $this->navigation() -> menu()
                               -> setContainer($this->navigation)
                               -> render();
    ?>
  </div>
</div>

<?php
if ($this->maximum_reach)
	echo 	"<div class='tip'><span >" . $this->translate("Sorry! Maximum number of allowed blogs is: %s blog(s)",$this->max_blogs) . "</span></div>";
else
	echo $this->form->render($this);
?>

<script type="text/javascript">
  var system_id = <?php echo $this->system_id; ?>;

  function updateTextFields() {
  if ($('system').selectedIndex == 3) {
    $('username-wrapper').show();
    $('url-wrapper').hide();
    $('filexml-wrapper').hide();
	  $('submit-wrapper').show();
  }
  else if($('system').selectedIndex == 4){
    $('username-wrapper').hide();
    $('url-wrapper').show();
    $('filexml-wrapper').hide();
	  $('submit-wrapper').show();
  }
  else{
    $('username-wrapper').hide();
    $('filexml-wrapper').show();
    $('url-wrapper').hide();
    $('submit-wrapper').show();
  }

  if ($('system').selectedIndex == 0)
  {
	 $('filexml-wrapper').hide();
	 $('username-wrapper').hide();
	 $('submit-wrapper').hide();
   $('url-wrapper').hide();
  }
}
switch(system_id){
  case 0:
     $('username-wrapper').hide();
     $('submit-wrapper').hide();
     $('filexml-wrapper').hide();
     $('url-wrapper').hide();
     break;
  case 1:
  case 2:
     $('url-wrapper').hide();
     $('username-wrapper').hide();
     break;
  case 3:
     $('filexml-wrapper').hide();
     $('url-wrapper').hide();
     break;
  case 4:
     $('filexml-wrapper').hide();
     $('username-wrapper').hide();
     break;
}
</script>